package com.zzyl.service;



import com.aliyun.iot20180120.models.*;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDto;
import com.zzyl.vo.DeviceVo;
import com.zzyl.vo.ProductVo;

import java.util.List;

public interface DeviceService {
    /**
     * 同步产品列表
     */
    void syncProductList();


    /**
     * 注册设备
     * @param deviceDto
     */
    void registerDevice(DeviceDto deviceDto);

    /**
     * 获取产品列表
     * @return
     */
    List<ProductVo> allProduct();


    /**
     * 分页查询设备
     * @param pageNum
     * @param pageSize
     * @param deviceName
     * @param locationType
     * @param productKey
     * @return
     */
    PageResponse<DeviceVo> pageQueryDevice(Integer pageNum, Integer pageSize, String deviceName, Integer locationType, String productKey);

    DeviceVo getDeviceDetail(QueryDeviceDetailRequest request);

    ResponseResult queryDevicePropertyStatus(QueryDevicePropertyStatusRequest request);

    ResponseResult queryThingModelPublished(QueryThingModelPublishedRequest request);

    void UpdateDevice(DeviceDto deviceDto);
}
